import inr.TestHahaInr;
import org.test.TestHaha;

public class TestSpring {

    private TestHaha testHaha;

    public static void main(String[] args) {


        System.out.println(1);

        AnnonSpringContext annonSpringContext=new AnnonSpringContext();
        TestHahaInr annonSpringContext1 =(TestHahaInr) annonSpringContext.getBean("testHaha");
        Object annonSpringContext2 = annonSpringContext.getBean("testHaha");
        Object annonSpringContext3 = annonSpringContext.getBean("testHaha");


        System.out.println(annonSpringContext1);
        System.out.println(annonSpringContext2);
        System.out.println(annonSpringContext3);

        annonSpringContext1.test1();


        try {
            TestHaha testHaha = TestHaha.class.newInstance();

        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        }
        for (int i = 0; i < TestHaha.class.getDeclaredFields().length; i++) {
            System.out.println("filds::"+TestHaha.class.getDeclaredFields()[i]);
        }

    }
}
